package com.android.aishangauction.model.detail;

import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/11/14.
 */

public abstract class DeleteAddressDataCallback  extends Callback<DeleteAddressData> {

    @Override
    public DeleteAddressData parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        DeleteAddressData data = new Gson().fromJson(string,DeleteAddressData.class);
        return data;
    }
}
